package cn.edu.qfnu.oj.service.impl;

import cn.edu.qfnu.common.service.Impl.BaseServiceImpl;
import cn.edu.qfnu.oj.dao.ClassDao;
import cn.edu.qfnu.oj.entity.Classes;
import cn.edu.qfnu.oj.service.ClassService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service("classService")
public class ClassServiceImpl extends BaseServiceImpl<Classes, Integer> implements ClassService {

    private ClassDao classDao;

    @Autowired
    public ClassServiceImpl(ClassDao classDao) {
        this.classDao = classDao;
    }


    @Override
    public Classes isRepeat(Integer classNumber, String classType, Integer grade) {
        return classDao.isRepeat(classNumber, classType, grade);
    }

}
